<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Layui</title>
		<link rel="stylesheet" href="../css/style.css" />
		<script src="../js/vue.js"></script>
		<script src="../js/axios.min.js"></script>
		<script src="../js/vue-cookies.js"></script>
		<script src="../js/app.js"></script>
		<!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
	</head>
	<body>
	
		 
		
		 
		<script src="../css/layui/layui.js"></script>



		<div id="app">


<div class="layui-row" ref="aaa">
    hellw
    </div>
<div id="layerDemo" >
  <button onclick="test()">示范一个公告层</button>
</div>
 

		</div>
<script src="../css/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
	
function test(){
layui.use('layer', function(){
  var layer = layui.layer;
     layer.open({
                          //layer提供了5种层类型。可传入的值有：0（信息框，默认）1（页面层）2（iframe层）3（加载层）4（tips层）
                          type: 2,
                          title: "修改采集设备信息",
						  area:['900px','900px'],
                          content:['../user.html','no']//引用的弹出层的页面层的方式加载修改界面表单
                      });
});     


}
</script>
		<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
		<script type="text/javascript">
			var vm = new Vue({
				el: '#app',
				data: {
					username: null,
					password: null,
					shoppinglist:null,
				},
				methods: {
					test2(){
						var count
						vm.searchitem({page:1},count)
					},
					searchitem: function(params,count) {
					
						console.log(URL + '/index/test')
						console.log(params)
						axios.get(URL + '/index/test', {
								params
							})
							.then(function(response) {
								if (response.data.code == 1) {
									console.log(response)
									console.log("路径  " + vm.img1)
								} else if (response.data.code == 0) {
									console.log(response)
									console.log(response.data.msg)
									vm.shoppinglist = [];
					
								}
							})
							.catch(function(error) {
								console.log(error);
							});
					
					},
}

		

			})
		</script>

	</body>
</html>
